package com.gjy.design.factory.method;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-11-10 11:28:31
 */
public class Demo {

    public static void main(String[] args) {
        PaymentCreator creator = new AlipayCreator();
        creator.pay(199.0);

        creator = new WechatPayCreator();
        creator.pay(99.0);
    }

}
